package it.polimi.traveldream.web.beans.administrator;

import it.polimi.traveldream.ejbclient.eaos.AccountServiceEAO;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

@ManagedBean(name="personalHomeAdministrator")
@RequestScoped
public class PersonalHomeAdministratorBean {
	@EJB
	private AccountServiceEAO aService;
	
	public PersonalHomeAdministratorBean() {
		
	}
	
	public String getCurrentUserEmail() {
		return aService.getCurrentUser().getEmail();
	}
	
	public String getCurrentUserName() {
		return aService.getCurrentUser().getName();
	}
	
	public String getCurrentUserSurname() {
		return aService.getCurrentUser().getSurname();
	}
	
	public String addEmployee() {
		return "addEmployee";
	}
	
	public String listEmployees() {
		return "listEmployee";
	}
	
}
